public class MyDequeTest {
    public static void main(String[] args) {
        MyDeque myDeque = new MyDeque(3);
        myDeque.add(1);
        myDeque.add("嗷嗷");
        System.out.println(myDeque.size());  //2
        myDeque.addFirst("西瓜");
        System.out.println(myDeque.peekFirst()); //西瓜
        System.out.println(myDeque.peekLast()); //嗷嗷
        myDeque.addFirst("袜子");
        System.out.println(myDeque);
        System.out.println(myDeque.size());  //4
        System.out.println(myDeque.poorFirst()); //袜子
        System.out.println(myDeque.poorLast()); //嗷嗷

    }
}
